'''
Created on Mar 14, 2016

@author: JimmyMo
'''
from processor.perfsynprocessor import Processor
from common import commonutil

class DropProcessor(Processor):
    def _process_event(self, current_event, prior_event):
        e = current_event
        if str(e['devicename']).startswith('devicename1050'):
            super()._drop_event(e)
#             e["_oper"] = commonutil.OPER_DELETED
            
#     def _process(self, current_event_list, prior_event_list):
#         for e in current_event_list:
#             if str(e['devicename']).startswith('devicename1050'):
#                 current_event_list.remove(e)
#         for e in current_event_list:
#             if str(e['devicename']).startswith('devicename1050'):
#                 current_event_list.remove(e)